<?php
require_once("config.php");
$user_id=$_GET["user_id"];
$sql="select * from useraddress where user_id=$user_id";
$result=mysql_query($sql);
$arr=array();
while($item=mysql_fetch_assoc($result)){
$arr[]=$item;
}
echo json_encode($arr);
?>